// 该文件中为所有channel的名称以及方法
class CommonChannel {
  static const name = 'com.commonchannel';

  /// 打开图片选择器
  static const photoSelector = 'photoSelector';

  /// 显示警告窗
  static const showAlertDialog = 'showAlertDialog';

  /// 获取app版本
  static const getAppVersion = 'getAppVersion';

  /// 设置app版本
  static const setAppVersion = 'setAppVersion';

  /// 转换成sha256
  static const convertSHA256 = 'convertSHA256';

  /// 转换成md5
  static const convertMD5 = 'convertMD5';

  /// base64加密解密
  static const encodeBase64 = 'encodeBase64';
  static const decodeBase64 = 'decodeBase64';

  /// 保存到sharedPreference中
  static const saveToSharedPreferenceString = 'saveToSharedPreferenceString';
  static const saveToSharedPreferenceInt = 'saveToSharedPreferenceInt';
  static const saveToSharedPreferenceBool = 'saveToSharedPreferenceBool';
  static const saveToSharedPreferenceFloat = 'saveToSharedPreferenceFloat';
  static const saveToSharedPreferenceLong = 'saveToSharedPreferenceLong';

  /// 从sharedPreference中获取内容
  static const getFromSharedPreferenceString = 'getFromSharedPreferenceString';
  static const getFromSharedPreferenceInt = 'getFromSharedPreferenceInt';
  static const getFromSharedPreferenceBool = 'getFromSharedPreferenceBool';
  static const getFromSharedPreferenceFloat = 'getFromSharedPreferenceFloat';
  static const getFromSharedPreferenceLong = 'getFromSharedPreferenceLong';

  /// 信息监听服务
  static const startMessageServerListen = 'startMessageServerListen'; // 开启服务
  static const stopMessageServerListen = 'stopMessageServerListen'; // 关闭服务
}

class HomeChannel {
  static const name = 'com.homechannel';
}

class ChatChannel {
  static const name = 'com.chatchannel';
}

class PersonalChannel {
  static const name = 'com.personalchannel';
}
